HTML Attributes versus Properties in JavaScript
The.attr()methodisaconvenientwaytosetthevalueofattributes—especiallywhensettingmultipleattributesorusingvaluesreturnedbyafunction ...,ThesetAttribute()methodoftheElementinterfacesetsthevalueofanattributeonthespecifiedelement.Element.removeAttribu...。參考影片的文章的如下: